package models

import "go.didapinche.com/time"

const DashboardTableName = "t_dashboard"

type Dashboard struct {
	ID         uint64    `gorm:"column:id" json:"id" form:"id"`
	Name       string    `gorm:"column:name" json:"name" form:"name"`
	Desc       string    `gorm:"column:desc" json:"desc" form:"desc"`
	Owner      string    `gorm:"column:owner" json:"owner" form:"owner"`
	Expand     bool      `gorm:"column:expand" json:"default_expand" form:"default_expand"`
	ParentID   uint64    `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
	CreateTime time.Time `gorm:"column:create_time" json:"create_time,omitempty" form:"create_time"`
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time,omitempty" form:"update_time"`
}

func (Dashboard) TableName() string {
	return DashboardTableName
}
